import Http from './Http'
import config from '../config/url'

class Api extends Http {
    // 活动请求
    /**
     * @param int pageInex 活动页码
     * @param int pageSize 数据长度
     */
    getActivitys({pageIndex=0,pageSize=10}){
        let url = config.getActivitys + `?pageIndex=${pageIndex}&pageSize=${pageSize}`
        return this.get(url)
    }
	getIndex({type=1,pageSize=20}){
		let url = config.getIndex + `?type=${type}&pageSize=${pageSize}`
		return this.get(url)
	}
}

export default new Api